import ParameterMethod from "./ParameterMethod";
export function positionMap(type: string) {
  const map: any = {
    top: { x: 0.5, y: 0 },
    right: { x: 1, y: 0.5 },
    bottom: { x: 0.5, y: 1 },
    left: { x: 0, y: 0.5 },
    topLeft: { x: 0, y: 0 },
    topRight: { x: 1, y: 0 },
    bottomLeft: { x: 0, y: 1 },
    bottomRight: { x: 1, y: 1 },
    center: { x: 0.5, y: 0.5 },
  };
  const parameter = map[type];
  if (parameter) return parameter;
  else {
    const j = Object.keys(map).map((item) => item);
    const i = `可选项:${j.join("、")}`;
    throw new Error(i);
  }
}


export const getChildren = () => {
  console.log(ParameterMethod.stage )
}